<#if ajax?has_content><#import "../layout/ajax.html" as com><#else><#import "../layout/common.html" as com></#if>
<@com.page title=title! pageId="rssArticle" data={'css':'rss/rss', 'js':'rss/rss', 'ver':'a04', 'desc':desc!title!}>

<div class="wrap-space">
	<div class="panel panel-default head-tab rss-entry">
		<div class="panel-heading">
			<ul class="nav nav-tabs">
				<li><a href="#rss-tab" data-toggle="tabajax" ajax-href="/app/rss">Báo</a></li>
				<li class="active"><a href="#rss-entry" data-toggle="tab" data-target="#rss-entry">News</a></li>
			</ul>
		</div>
		<div class="tab-content">
			<div class="tab-pane sites-wrap" id="rss-tab">Loading...</div>
			
			<div class="tab-pane active" id="rss-entry">
				<div class="rss-title">
					${title!?html}
				</div>
				<div class="rss-content">
					${content!}
				</div>
			</div>
		</div>
		
		<div class="">
			<div class="input-group rss-controls" style="padding:10px; border-bottom:1px solid #ddd;">
				<span class="input-group-addon">@</span>
				<input type="text" class="form-control" value="${(url!)?html}" onclick="this.select()">
				<span class="input-group-btn">
					<a class="btn btn-default" href="http://www.facebook.com/sharer.php?u=${(url!)?html}" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;" title="Share to Facebook">Fb</a>
					<a class="btn btn-default" href="http://twitter.com/share?url=${(url!)?html}" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;" title="Share to Twitter">Twit</a>
					<a class="btn btn-default" href="https://plus.google.com/share?url=${(url!)?html}" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;" title="Share to Google+">G+</a>
				</span>
			</div>
			<div class="rss-cmt hide">
				<div class="cmt-head">BÌNH LUẬN</div>
				<form role="form" class="cmt-form no-fb" id="commentForm">
					<div class="cmt-content">
						<div><label class="cmt-user label">Nội dung</label></div>
						<textarea class="form-control" rows="3"></textarea>
						<div class="note hide"><span class="length">tối thiểu 10 chữ</span> <span class="vietnamese">tiếng Việt có dấu</span> <span class="link">không chứa liên kết</span> </div>
					</div>
					<div class="cmt-submit"><input type="submit" class="btn btn-default" value="Gửi bình luận"/></div>
				</form>
			</div>
		</div>
	</div>
</div>


<div id="fb-root"></div>
<script></script>

</@com.page>